import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import Home from '@/page/Home'
import Login from '@/page/Login'
import Register from '@/page/Register'
import Changepassword from '@/page/Changepassword'
import MoreIndex from '@/page/MoreIndex'
import StockIndex from '@/page/StockIndex'
import Plan from '@/page/Plan'
import Discuss from '@/page/Discuss'
import News from '@/page/News'
import Remind from '@/page/remind/Remind'
import RemindAdd from '@/page/remind/RemindAdd'
import RemindModify from '@/page/remind/RemindModify'
import JoinUs from '@/page/JoinUs'
import Rule from '@/page/Rule'
import Introduce from '@/page/Introduce'

Vue.use(Router)

export default new Router({
  // mode: 'history',
  routes: [
    // {
    //   path: '/',
    //   name: 'HelloWorld',
    //   component: HelloWorld
    // }
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/register',
      name: 'Register',
      component: Register
    },
    {
      path: '/changepassword',
      name: 'Changepassword',
      component: Changepassword
    },
    {
      path: '/moreindex',
      name: 'MoreIndex',
      component: MoreIndex
    },
    {
      path: '/stockindex',
      name: 'StockIndex',
      component: StockIndex
    },
    {
      path: '/plan',
      name: 'Plan',
      component: Plan
    },
    {
      path: '/discuss',
      name: 'Discuss',
      component: Discuss
    },
    {
      path: '/news',
      name: 'News',
      component: News
    },
    {
      path: '/remind',
      name: 'Remind',
      component: Remind
    },
    {
      path: '/remind/add',
      name: 'RemindAdd',
      component: RemindAdd
    },
    {
      path: '/remind/modify',
      name: 'RemindModify',
      component: RemindModify
    },
    {
      path: '/joinus',
      name: 'JoinUs',
      component: JoinUs
    },
    {
      path: '/rule',
      name: 'Rule',
      component: Rule
    },
    {
      path: '/introduce',
      name: 'Introduce',
      component: Introduce
    }
  ]
})
